package com.sdau.reggie.common;


/**
 * 111111
 * 基于TreadLocal封装工具类，用户保存和获取当前登录用户id
 */
public class BaseContext {

    private String string;

    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setCurrentId(Long id) {

        threadLocal.set(id);
    }

    public static Long getCurrentId() {
        return threadLocal.get();
    }

    public static void main(String[] args) {
        System.out.println("11111111111222222222222222111111111111111");
        System.out.println("22222222222");
        System.out.println("hot-fix");

    }
}
